package com.leetcode.LC;

public class Test01 {

    public void splitNumber(int n) {
        int num = 0;
        while (n != 0) {
            num = n % 10;
            n /= 10;
            System.out.print(num + ",");
        }
    }
    public static void main(String[] args) {
        new Test01().splitNumber(521);
    }
}
